Dashboard command center, extended bot API, and stability fixes#3
Open
packetloss404 wants to merge 1 commit into
Open
Dashboard command center, extended bot API, and stability fixes#3packetloss404 wants to merge 1 commit into
packetloss404 wants to merge 1 commit into
Conversation
Backend API: - Add /api/bots/:name/pause, /resume, /follow, /stop, /walkto endpoints - Add /api/bots/:name/equip endpoint for gear-up command - Add /api/terrain endpoint for map terrain scanning - Add /api/players endpoint for online player list Extended bot data: - Expose armor slots, offhand, hotbar in getDetailedStatus() - Expose XP level/points/progress from bot.experience - Expose StatsTracker data (mined, crafted, killed, deaths, damage) - Expose combat state (lastAttackerName, instinctActive) - Expose voyager internalState and queuedTaskCount - Add StatsTracker.getStats() and VoyagerLoop.getQueuedTaskCount() Bug fixes: - Guard bot._client.chat calls during auth to prevent crash on reconnect - Guard bot.players null check in head tracking interval Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
654dbfd to
71821b4
Compare
packetloss404
pushed a commit
to packetloss404/mc-server-bot
that referenced
this pull request
Jun 17, 2026
First api.ts decomposition (review dyoburon#3). createAPIServer is a ~4400-line closure defining ~140 routes inline. Extracting per-domain modules of the form registerXRoutes(app, deps), behavior-preserving, safest-first. Terrain (GET /api/terrain, /api/terrain/height) is read-only and only needs BotManager — moved verbatim to routes/terrainRoutes.ts, called from createAPIServer with { botManager }. Establishes the extraction pattern. Build clean (tsc); 441/441 tests pass. Live smoke-test pending at next deploy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
packetloss404
pushed a commit
to packetloss404/mc-server-bot
that referenced
this pull request
Jun 17, 2026
…oute modules First batch of the api.ts (createAPIServer) decomposition (review dyoburon#3). Moved terrain, schematics (incl. multer upload), and supply-chain route groups into src/server/routes/*Routes.ts behind registerXRoutes(app, deps); lifted shared helpers (asyncH/isSafeBotName/isSafeFilename/sanitizeErrorMessage) to routes/helpers.ts. Behavior-preserving; createAPIServer still owns wiring + the return object. Build clean; 441/441 tests pass. Live smoke to follow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code